package com.turman.builibrary.tab.common;

import android.view.ViewGroup;

import androidx.annotation.NonNull;

import java.util.List;

public interface IBTabLayout <Tab extends ViewGroup,D>{
    Tab findTab(@NonNull D data);
    void addTabSelected(@NonNull OnTabSelectedListener<D> defaultInfo);
    void defaultSelected(@NonNull D defaultInfo);
    void inflateInfo(@NonNull List<D> infoList);

    interface OnTabSelectedListener<D>{
        void onTabSelectedChange(int index,D preInfo, @NonNull D nextInfo);
    }
}
